import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      redirect: "/index"
    },

    {
      path: '/index',
      name:"index",
      component: resolve => require(['@/page/index'], resolve)
    },
    {
      path: '/list',
      name:"list",
      component: resolve => require(['@/page/list'], resolve)
    },
    {
      path: '/setting',
      name:"setting",
      component: resolve => require(['@/page/setting'], resolve)
    },
    {
      path: '/test',
      name: 'HelloWorld',
      component: () =>  '@/components/HelloWorld'
    }
  ]
})
